package java复习202408.C_封装继承多态验证;

public class c2_继承验证 {

    public abstract class abs1{

        public abstract void abs1m1();

        public void abs1m2(){
            System.out.println("hello abstract class");
        }

    }

    public static void o1m2(){
        System.out.println("hello class");
    }

    public class o1{
//        Abstract method in non-abstract class  普通类不能使用abstract修饰方法
//        public abstract void  o1m1();



    }



    public class o2 extends abs1{
        @Override
        public void abs1m1() {

        }
    }

    public final class o3 extends o1{

    }

//    Cannot inherit from final 'java复习202408.C_封装继承多态验证.c2_继承验证.o3'
//    public final class o4 extends o3{
//    }


    public interface i1{
        String i1f1 = "null";

        public abstract void i1m1();
    }



}
